import React from 'react'
import {Button} from "antd"
import {
    useNavigate
} from "react-router-dom"
import {
    debounce//防抖
} from "lodash"

function NO_permissions() {
    const navigate = useNavigate()
    const gotoLogin = (str)=>{
        console.log(str);
        navigate("/login")
    }
    return (
        <div className="no_permissions">
            <div className="content">
                <p></p>
                <p> 你没有权限 请请去登录</p>
                <Button onClick={debounce(()=>gotoLogin("hi，我是 str"),3000)}>登录</Button>
            </div>
        </div>
    )
}

export default NO_permissions
